<?php
$adminName = trim($_POST['adminName']);
$icp = trim($_POST['icp']);
$Copyright = trim($_POST['Copyright']);
include_once 'connect.php';

$sql = "update text set icp = '$icp', Copyright = '$Copyright' ";
$result = mysqli_query($connect, $sql);
if ($result) {
    echo "<script>alert('更新成功');location.href = 'index.php';</script>";
} else {
    echo "<script>alert('更新失败');history.back();</script>";
}